/**
 * Created by jrocha on 9/18/14.
 */
public class FizzBuzz {
    public FizzBuzz(){
        for (int countNumbers = 1; countNumbers <= 100; ++countNumbers){
            String fb = verifyNumber(countNumbers);
            System.out.println(fb);
        }
    }

    public String verifyNumber(int number){
        String fb;

        if (number % 3 == 0 && number % 5 == 0)
            fb = "FizzBuzz";
        else if (number % 3 == 0)
            fb = "Fizz";
        else if (number % 5 == 0)
            fb = "Buzz";
        else
            fb = "" + number;

        return fb;
    }
}
